//引入相关基础插件
import Vue from "vue";
import App from "./App";
//引入路由相关配置
import router from "./router";
//引入Axios
import axios from 'axios'
//虚拟滚动插件
import VirtualScroll from './plugins/index'

//阻止启动生产环境提醒
Vue.config.productionTip = true;

//将axios对象挂载到Vue原型对象上
Vue.prototype.$axios = axios

//全局注册 虚拟滚动插件
Vue.use(VirtualScroll)

//实例化Vue对象，挂载对应Dom节点、加入路由依赖、核心入口组件
const app = new Vue({
  router,
  render: (h) => h(App),
});

app.$mount("#app");
